/**
 * @name: login
 * @author: pengxiaoqi
 * @date: 2021/3/15 1:40 下午
 * @description：login
 * @update: 2021/3/15 1:40 下午
 */
import request from '../http'
import qs from 'qs'
const login = {
  //登陆
  loginIn(params) {
    return request({
      url: '/neighborhood/user/login',
      method: 'post',
      data: params,
    })
  },
  //获取验证码
  getVerificationCode() {
    return request({
      url: '/neighborhood/user/getVerificationCode',
      method: 'get',
    })
  },
  //退出登录
  loginOut() {
    return request({
      url: '/neighborhood/user/loginOut',
      method: 'get',
    })
  },
  //修改密码
  changePwd(params) {
    return request({
      url: '/neighborhood/user/changePwd',
      method: 'post',
      data: params,
    })
  }
}
export default login
